package com.example.eos.bean;

import java.io.Serializable;

/**
 * 返回信息
 */
public class ReturnInfo implements Serializable{

    private String message;
    private Object object;

    public static ReturnInfo info1(String message){
        ReturnInfo ri = new ReturnInfo();
        ri.message = message;
        return ri;
    }

    public static ReturnInfo info2(String message ,Object object){
        ReturnInfo ri = new ReturnInfo();
        ri.message = message;
        ri.object = object;
        return ri;
    }

    public static ReturnInfo info3(Object object){
        ReturnInfo ri = new ReturnInfo();
        ri.object = object;
        return ri;
    }


    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }
}
